package com.entrogy.service;

import com.alibaba.fastjson.JSONObject;
import com.entrogy.bean.MeetingApplyRecordEntity;
import com.entrogy.bean.MeetingRoomEntity;
import com.entrogy.bean.PersonMeetingAttendanceEntity;
import com.entrogy.bean.PubCountEntity;

import java.util.List;

/**
 * @ClassName MeetingRoomService
 * @Description
 * @Author luoxingjiang
 * @Date 2019/8/6 0006 下午 3:44
 * @Version 1.0
 **/
public interface MeetingRoomService {

    List<MeetingRoomEntity> listMeetingRoom(String meetingRoomName, Integer schoolCode, String selectDate, Integer meetingRoomId);

    boolean insertMeetingApplyRecord(MeetingApplyRecordEntity meetingApplyRecordEntity);

    String getMeetingRoomAdminPhone(Integer meetingRoomId);

    List<MeetingApplyRecordEntity> listMeetingApplyRecord(String userId);

    MeetingApplyRecordEntity getApplyDetail(Integer meetingRoomApplyId);

    boolean updateMeetingRoomApplyRecord(Integer meetingRoomApplyId, Integer audited, String opinion);

    PubCountEntity getApplyUserOpenId(Integer meetingRoomApplyId);

    List<String> listMeetingPersonPhone(Integer meetingRoomApplyId);

    List<JSONObject> getMeetingRoomListSimple(Integer schoolCode);

    List<MeetingApplyRecordEntity> listAttendanceMeeting(String userId);

    List<MeetingApplyRecordEntity> listMyApply(String userId);

    boolean insertMeetingRoom(MeetingRoomEntity meetingRoom);

    boolean isRequireAudit(Integer meetingRoomId);

    Integer countMeetingApplyRecord(String userId);

    Integer countAttendanceMeeting(String userId);

    Integer countMyApply(String userId);

    JSONObject getMeetingDate(Integer meetingRoomApplyId);

    List<PersonMeetingAttendanceEntity> listAttendancePerson(Integer meetingRoomApplyId, String tableName, String meetingEndTime);

    List<PersonMeetingAttendanceEntity> listAllMeetingPerson(Integer meetingRoomApplyId);

    boolean updateMeetingRoom(MeetingRoomEntity meetingRoom);

    List<String> listMeetingRoomDevice(MeetingApplyRecordEntity meetingApplyRecord);

    List<String> listMeetingPersonThdid(Integer meetingId);

    boolean isMeetingDormManager(String uid);

    List<Integer> listApplyId(Integer schoolCode, String uid);
}
